package com.xiaoshuidi.cloud.module.contract.controller.admin.contract.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.xiaoshuidi.cloud.module.contract.valid.ExcelValid;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = false) // 设置 chain = false，避免用户导入有问题
public class EnergyConsumptionImportExcelVO {

    @ExcelProperty("账单编号")
    @ExcelValid(message = "账单编号不能为空")
    private String orderNo;

    @ExcelProperty("公寓名称")
    @ExcelValid(message = "公寓名称不能为空")
    private String apartmentName;

    @ExcelProperty("房间名称")
    @ExcelValid(message = "房间名称不能为空")
    private String roomName;

    @ExcelProperty("账单总金额")
    @ExcelValid(message = "账单总金额不能为空")
    private BigDecimal totalAmount;

    @ExcelProperty("待收金额")
    @ExcelValid(message = "待收金额不能为空")
    private BigDecimal receivableAmount;

    //meter  抄表账单
    @ExcelProperty("账单类型")
    private String orderType;

    @ExcelProperty("企业名称")
    @ExcelValid(message = "企业名称不能为空")
    private String companyName;

    @ExcelProperty("客户名称")
    @ExcelValid(message = "客户名称不能为空")
    private String customerName;

    @ExcelProperty("账单状态")
    @ExcelValid(message = "账单状态不能为空")
    private String billTypeName;

    @ExcelProperty("费用承担方")
    private String roommateId = "个人";
}
